<!-- 公告详情 -->
<template>
	<view class="center">
		<view class="notice_title">
			{{formobj.noticeTitle}}
		</view>
		<view class="notice_time">
			发布时间  {{formobj.insertTime}}
		</view>
		<view class="notice_conten">
			<u-parse :content="formobj.noticeContext"></u-parse>
		</view>
	</view>
</template>

<script scoped>
	export default {
		props: {},
		components: {},
		data() {
			return {
				id: '',
				formobj:{}
			}
		},
		computed: {},
		watch: {},
		created() {},
		mounted() {},
		onLoad(options) {
			// 从路由参数中获取传递的值			
			this.id = decodeURIComponent(options.id);
			this.noticedetail()
		},
		methods: {
			noticedetail() {
				const that = this
				this.$request(`/index/notice/detail/${this.id}`, 'get')
					.then(
						res => {
							that.formobj=res.data.data
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.center {
		.notice_title{
			padding: 20px 20px 0 20px;
			font-size: 20px;
			font-weight: 600;
			padding-top: 20px;
			text-align: center;
		}
		.notice_time{
			font-size: 11px;
			color: #8b8b8b;
			display: flex;
			justify-content: flex-end;
			padding: 10px 20px;
		}
		.notice_conten{
			padding: 20px;
		}
	}
</style>